package com.ruoyi.station.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 光缆芯对象 s_core
 *
 * @author ruoyi
 * @date 2021-08-25
 */
@Data
@ApiModel(description = "光缆芯实体类")
@TableName("s_core")
public class SCore
{
    private static final long serialVersionUID=1L;

    /** 主键ID */
    @ApiModelProperty(value = "${comment}" )
    @TableId(value="ID" ,type = IdType.ASSIGN_UUID)
    private String id;

    /** 父ID */
    @Excel(name = "父ID" )
    @ApiModelProperty(value = "父ID" )
    private Long parentId;

    /** 芯序号 */
    @Excel(name = "芯序号" )
    @ApiModelProperty(value = "芯序号" )
    private Integer cableNum;

    /** 芯值 */
    @Excel(name = "芯值" )
    @ApiModelProperty(value = "芯值" )
    private String cableValue;

    /** 创建者 */
    @TableField("create_by")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新者 */
    @TableField("update_by")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value =  "update_time",fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标记" )
    @TableLogic(value = "0",delval = "2")
    private String delFlag;


}
